package _7QiaoJie.sub;

import _7QiaoJie.DrawAPI;
import _7QiaoJie.Shape;

/**
 * @Circle: 图形抽象类子类 ⚪
 * @author: ZBoHang
 * @time: 2021/9/7 14:54
 */
public class Circle extends Shape {

    private int x,y,radius;

    public Circle(DrawAPI drawAPI, int x, int y, int radius) {
        super(drawAPI);
        this.x = x;
        this.y = y;
        this.radius = radius;
    }

    @Override
    public void draw() {
        drawAPI.drawCircle(radius,x,y);
    }
}
